print("这是作业4.4要用的数组：")
players = ['charles', 'martina', 'michael', 'florence', 'eli']
print(players)
message1 = "The first three items in the list are:"
print(message1)
for player1 in players[:3]:
    print(player1, end=' ')
message2 = "\nThree items from the middle of the list are:"
print(message2)
for player2 in players[-4:-1]:
    print(player2, end=' ')
message3 = "\nThe last three items in the list are:"
print(message3)
for player3 in players[-3:]:
    print(player3, end=' ')
print("\n")
mypizzas = ['pizza_1','pizza_2','pizza_3']
friend_pizzas = mypizzas[:]
mypizzas.append('pizza_4')
friend_pizzas.append('印度飞饼')
for mypizza in mypizzas:
    print("My favorite pizzas are:" + str(mypizza))
for friend_pizza in friend_pizzas:
    print("My friend’s favorite pizzas are:" + str(friend_pizza))
